<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="fff" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>留言簿</title>
    <link rel="stylesheet" type= "text/css" href="{{ url_for('static', filename='css/main.css') }}">
</head>
<body>
<div id="main">
    <h1>测试用界面</h1>

    <div id="form-area">
        <p>输入信息:</p>

        <form action="/post_save" method="post">
            <table>
                <tr>
                    <th>姓名</th>
                    <td>
                        <input type="text" size="20" name="name">
                    </td>
                </tr>
                <tr>
                    <th>内容</th>
                    <td>
                        <input type="text" size="20" name="comment">
                    </td>
                </tr>
            </table>
            <p>
                <button type="submit">提交</button>
            </p>
        </form>
    </div>
    <div id="entries-area">
        <h2>留言历史信息</h2>

        <div class="entry">
            {% for show in msg%}
            <h3>{{show.name}}=>{{show.time}}
                :({{show.comment}})</h3>
            {% endfor %}
        </div>
    </div>
</div>
</body>
</html>

